Optimal. Leaf size=87 \[ \frac {3 b^2 \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {x}}{\sqrt {a x+b \sqrt {x}}}\right )}{2 a^{5/2}}-\frac {3 b \sqrt {a x+b \sqrt {x}}}{2 a^2}+\frac {\sqrt {x} \sqrt {a x+b \sqrt {x}}}{a} \]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 87, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {2018, 670, 640, 620, 206} \begin {gather*} \frac {3 b^2 \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {x}}{\sqrt {a x+b \sqrt {x}}}\right )}{2 a^{5/2}}-\frac {3 b \sqrt {a x+b \sqrt {x}}}{2 a^2}+\frac {\sqrt {x} \sqrt {a x+b \sqrt {x}}}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 620
Rule 640
Rule 670
Rule 2018
Rubi steps
\begin {align*} \int \frac {\sqrt {x}}{\sqrt {b \sqrt {x}+a x}} \, dx &=2 \operatorname {Subst}\left (\int \frac {x^2}{\sqrt {b x+a x^2}} \, dx,x,\sqrt {x}\right )\\ &=\frac {\sqrt {x} \sqrt {b \sqrt {x}+a x}}{a}-\frac {(3 b) \operatorname {Subst}\left (\int \frac {x}{\sqrt {b x+a x^2}} \, dx,x,\sqrt {x}\right )}{2 a}\\ &=-\frac {3 b \sqrt {b \sqrt {x}+a x}}{2 a^2}+\frac {\sqrt {x} \sqrt {b \sqrt {x}+a x}}{a}+\frac {\left (3 b^2\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {b x+a x^2}} \, dx,x,\sqrt {x}\right )}{4 a^2}\\ &=-\frac {3 b \sqrt {b \sqrt {x}+a x}}{2 a^2}+\frac {\sqrt {x} \sqrt {b \sqrt {x}+a x}}{a}+\frac {\left (3 b^2\right ) \operatorname {Subst}\left (\int \frac {1}{1-a x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt {b \sqrt {x}+a x}}\right )}{2 a^2}\\ &=-\frac {3 b \sqrt {b \sqrt {x}+a x}}{2 a^2}+\frac {\sqrt {x} \sqrt {b \sqrt {x}+a x}}{a}+\frac {3 b^2 \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {x}}{\sqrt {b \sqrt {x}+a x}}\right )}{2 a^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.12, size = 102, normalized size = 1.17 \begin {gather*} \frac {\sqrt {a} \sqrt {x} \left (2 a^2 x-a b \sqrt {x}-3 b^2\right )+3 b^{5/2} \sqrt [4]{x} \sqrt {\frac {a \sqrt {x}}{b}+1} \sinh ^{-1}\left (\frac {\sqrt {a} \sqrt [4]{x}}{\sqrt {b}}\right )}{2 a^{5/2} \sqrt {a x+b \sqrt {x}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.27, size = 86, normalized size = 0.99 \begin {gather*} \frac {\left (2 a \sqrt {x}-3 b\right ) \sqrt {a x+b \sqrt {x}}}{2 a^2}-\frac {3 b^2 \log \left (-2 a^{5/2} \sqrt {a x+b \sqrt {x}}+2 a^3 \sqrt {x}+a^2 b\right )}{4 a^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.27, size = 69, normalized size = 0.79 \begin {gather*} \frac {1}{2} \, \sqrt {a x + b \sqrt {x}} {\left (\frac {2 \, \sqrt {x}}{a} - \frac {3 \, b}{a^{2}}\right )} - \frac {3 \, b^{2} \log \left ({\left | -2 \, \sqrt {a} {\left (\sqrt {a} \sqrt {x} - \sqrt {a x + b \sqrt {x}}\right )} - b \right |}\right )}{4 \, a^{\frac {5}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.05, size = 160, normalized size = 1.84 \begin {gather*} \frac {\sqrt {a x +b \sqrt {x}}\, \left (4 a \,b^{2} \ln \left (\frac {2 a \sqrt {x}+b +2 \sqrt {\left (a \sqrt {x}+b \right ) \sqrt {x}}\, \sqrt {a}}{2 \sqrt {a}}\right )-a \,b^{2} \ln \left (\frac {2 a \sqrt {x}+b +2 \sqrt {a x +b \sqrt {x}}\, \sqrt {a}}{2 \sqrt {a}}\right )+4 \sqrt {a x +b \sqrt {x}}\, a^{\frac {5}{2}} \sqrt {x}-8 \sqrt {\left (a \sqrt {x}+b \right ) \sqrt {x}}\, a^{\frac {3}{2}} b +2 \sqrt {a x +b \sqrt {x}}\, a^{\frac {3}{2}} b \right )}{4 \sqrt {\left (a \sqrt {x}+b \right ) \sqrt {x}}\, a^{\frac {7}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x}}{\sqrt {a x + b \sqrt {x}}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {x}}{\sqrt {a\,x+b\,\sqrt {x}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x}}{\sqrt {a x + b \sqrt {x}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________